/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.siteEncheres.client.compte;

import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.layout.AccordionLayout;
import com.gwtext.client.widgets.layout.HorizontalLayout;


/**
 *
 * @author Francois
 */
public class IhmCompte extends Panel {

    private int hauteurPanel = 600;
    private int largeurPanel = 800;

    public IhmCompte() {
        setBorder(false);  
        setLayout(new HorizontalLayout(15));  
  
        Panel accordionPanel = createAccordionPanel();  
        accordionPanel.setTitle("Gérer son comte");  
        accordionPanel.setHeight(hauteurPanel);  
        accordionPanel.setWidth(largeurPanel);  
        
        add(accordionPanel);  
    }
    
    private Panel createAccordionPanel() {  
        Panel accordionPanel = new Panel();  
        accordionPanel.setLayout(new AccordionLayout(true));  
  
        //Onjoute les panel associés a la gestion du compte
        //dans le accordionPanel.
        Panel panelCrediter = new IhmCrediterCompte();
        panelCrediter.setTitle("Créditer son compte");
        accordionPanel.add(panelCrediter);

        Panel panelDébiter = new IhmDebiterCompte();
        panelDébiter.setTitle("Débiter son compte");
        accordionPanel.add(panelDébiter);
        
        /*Panel panelCloturer = new Panel();
        panelCloturer.setTitle("Clôturer son compte");
        accordionPanel.add(panelCloturer);
        */
        
        return accordionPanel;  
    }  
}
